package com.itheima.api.arraylist.api;

import java.util.ArrayList;

/**
 * @author Anomaly
 * @date 2022/12/6 20:18
 */
public class ApiDemo {
    public static void main(String[] args) {
        ArrayList<String> strings = new ArrayList<>();
        strings.add("java");
        strings.add("python");
        strings.add("c艹");
        strings.add("php");

        System.out.println(strings.get(0));
        System.out.println(strings.size());

        for (String s : strings) {
            System.out.println(s);
        }
    }
}
